@space: 24px;

.modalDefault() {
  :global {
    .ant-modal-content {
      background-color: var(--bg-main) !important;
      .ant-modal-header {
        padding-top: 18px;
        padding-bottom: 0;
        background-color: var(--bg-main) !important;
        border-bottom: 0;
      }

      .ant-modal-body {
        padding: @space;
      }

      .ant-modal-footer {
        padding: @space;
        padding-top: 0;
        border-top: 0;
      }

      .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
        margin-left: 16px;
      }

      .ant-btn {
        border-radius: 5px;
      }

      // .ant-btn-primary {
      // background: #18a0fb;
      // border-color: #18a0fb;
      // }
    }
  }
}

.modal {
  .modalDefault();

  .titleDiv {
    display: flex;
    flex-direction: row;
    align-items: center;

    .titleLogo {
      width: 30px;
      height: 30px;
      margin-right: 10px;
    }

    .title {
      font-weight: 500;
      font-size: 18px;
      font-family: PingFang SC;
      line-height: 18px;
      letter-spacing: 0;
      text-align: left;
    }
  }

  .container {
    width: 100%;
    overflow: hidden;
    .form {
      flex: 1;
      .row {
        margin-bottom: 16px;
        :global {
          // .ant-form-item > .ant-form-item-label > label.ant-form-item-required::after {
          //   display: inline-block;
          //   margin-right: 4px;
          //   color: #a61d24;
          //   font-size: 14px;
          //   font-family: SimSun, sans-serif;
          //   line-height: 1;
          //   content: '*';
          // }
          .ant-form-item {
            // .ant-form-item-no-colon {
            //   color: #7a7d7f;
            //   font-size: 14px;
            // }
            &:last-child {
              margin-bottom: 0;
            }
          }
          // .ant-input-affix-wrapper {
          //   border: 1px solid #434343;
          //   .ant-input-suffix {
          //     color: #7a7d7f;
          //   }
          // }
        }
        &:last-child {
          margin-bottom: 0;
        }
        &:nth-child(3) {
          margin-bottom: 10px;
        }
      }
    }
    .specil {
      width: 97px;
      overflow: hidden;
      color: #7a7d7f;
      font-size: 14px;
      line-height: 14px;
      .lineOne {
        margin-bottom: 4px;
      }
    }
    .unitEnergyCostAllocation {
      :global {
        .ant-row {
          display: flex;
          flex-direction: row;
          align-items: center;
          .ant-col {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
          }
        }
      }
    }
  }

  .submitBtn {
    margin-left: 24px;
  }
}
